<!doctype html>
<html lang="zh-CN">
<head><meta name="generator" content="Hexo 3.8.0">
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=11,IE=10,IE=9,IE=8">
    <meta name="baidu-site-verification" content="dIcXMeY8Ya">
    
    <title>文章归档: 2020 | blog</title>
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=0">
    <meta name="keywords" content="Jim, 服务端, Java, Java开发">
    <meta name="description" content="Jim个人学习记录">

    
    <link rel="alternative" href="/atom.xml" title="blog" type="application/atom+xml">
    
    
    <link rel="shortcut icon" href="/favicon.ico">
    
    <link rel="stylesheet" href="/css/style.css">
    <!--[if lt IE 9]>
    <script src="/js/html5.js"></script>
    <![endif]-->
    
<script>
    var _hmt = _hmt || [];
    (function() {
        var hm = document.createElement("script");
        hm.src = "//hm.baidu.com/hm.js?fd459238242776d173cdc64918fb32f2";
        var s = document.getElementsByTagName("script")[0];
        s.parentNode.insertBefore(hm, s);
    })();
</script>


</head>
</html>
<body class="home">
    <!--[if lt IE 9]>
    <div class="browsehappy">
        当前网页 <strong>不支持</strong>
        你正在使用的浏览器. 为了正常的访问, 请 <a href="http://browsehappy.com/">升级你的浏览器</a>.
    </div>
    <![endif]-->

    <!-- 博客头部 -->
    <header class="header">
    <section class="container header-main">
        <div class="logo">
            <a href="/">
                <div class="cover">
                    <span class="name">blog</span>
                    <span class="description"></span>
                </div>
            </a>
        </div>
        <div class="dropnav icon-paragraph-justify" id="JELON__btnDropNav"></div>
        <ul class="menu hidden" id="JELON__menu">
            
            <li rel="/archives/2020/index.html" class="item ">
                <a href="/" title="首页" class="icon-home">&nbsp;首页</a>
            </li>
            
            <li rel="/archives/2020/index.html" class="item ">
                <a href="/about/" title="关于" class="icon-about">&nbsp;关于</a>
            </li>
            
            <li rel="/archives/2020/index.html" class="item ">
                <a href="/comment/" title="留言" class="icon-comment">&nbsp;留言</a>
            </li>
            
        </ul>
        <div class="profile clearfix">
            <div class="feeds fl">
                
                
                <p class="links">
                    
                        <a href="https://github.com/starryming" target="_blank">Github</a>
                        |
                    
                        <a href="http://ljmstarry.gitee.io" target="_blank">Hosted by Coding Pages</a>
                        
                    
                </p>
                <p class="sns">
                    
                        <a href="http://weibo.com/" class="sinaweibo" target="_blank"><b>■</b> 新浪微博</a>
                    
                        <a href="https://www.facebook.com/" class="qqweibo" target="_blank"><b>■</b> Facebook</a>
                    
                    <a href="javascript: void(0);" class="wechat">
                        <b>■</b>
                        公众号
                        <span class="popover">
                            <img src="/img/wechat_mp.jpg" width="120" height="120" alt="我的微信订阅号">
                            <i class="arrow"></i>
                        </span>
                    </a>
                </p>
                
            </div>
            <div class="avatar fr">
                <img src="/img/timg.jpg" alt="avatar" title="Jim">
            </div>
        </div>
    </section>
</header>


    <!-- 博客正文 -->
    <div class="container body clearfix">
        <section class="content">
            <div class="content-main widget">
                <!-- 文章归档 -->

    <h3 class="widget-hd">
        <strong>
            
                文章归档
                <!-- 文章归档，可以根据日期分类 -->
            
        </strong>
    </h3>
    
        <!-- 文章列表 item -->
<article class="post">
    <header>
        <!-- 标签这有且只能显示一个 -->
        
        <a class="cat-link" href="/categories/Reading/">Reading</a>
        
        <!-- 文章标题 -->
        
    <h3 class="post-title">
    	<a href="https://ljmstarry.gitee.io/2020/03/01/part8-支持使用静态类成员而不是非静态类成员/">
    		Effective Java part8
    	</a>
    </h3>

    </header>
    <p class="post-meta">
        Jim 发表于
        <time datetime="2020-03-01T12:22:59.000Z">2020-03-01</time>
        &nbsp;&nbsp;
        <span class="post-tags">
            标签：
            
    
        <a href="/tags/阅读/" title="阅读">阅读</a> / 
    
        <a href="/tags/Effective-Java/" title="Effective Java">Effective Java</a>
    

        </span>
    </p>

    <div class="post-content">
        <div class="post-excerpt">
            
                <h3 id="支持使用静态类成员而不是非静态类成员"><a href="#支持使用静态类成员而不是非静态类成员" class="headerlink" title="支持使用静态类成员而不是非静态类成员"></a>支持使用静态类成员而不是非静态类成员</h3><blockquote>
<p>四种嵌套类: 非静态内部类、静态内部类、匿名内部类、局部内部类</p>
</blockquote>
            
            <p class="more">
                <a href="https://ljmstarry.gitee.io/2020/03/01/part8-支持使用静态类成员而不是非静态类成员/">阅读剩下更多</a>
            </p>
        </div>
        <div class="post-thumbnail" data-img>
            <a href="https://ljmstarry.gitee.io/2020/03/01/part8-支持使用静态类成员而不是非静态类成员/" title="Effective Java part8">
                
                    <img class="thumbnail" src="/img/default.png" data-echo="/img/thumbnail/1.jpg" alt="默认配图">
                
            </a>
        </div>
    </div>
</article>

    
        <!-- 文章列表 item -->
<article class="post">
    <header>
        <!-- 标签这有且只能显示一个 -->
        
        <a class="cat-link" href="/categories/Reading/">Reading</a>
        
        <!-- 文章标题 -->
        
    <h3 class="post-title">
    	<a href="https://ljmstarry.gitee.io/2020/03/01/part7-类层次结构有限于标签类/">
    		Effective Java part7
    	</a>
    </h3>

    </header>
    <p class="post-meta">
        Jim 发表于
        <time datetime="2020-03-01T07:02:01.000Z">2020-03-01</time>
        &nbsp;&nbsp;
        <span class="post-tags">
            标签：
            
    
        <a href="/tags/阅读/" title="阅读">阅读</a> / 
    
        <a href="/tags/Effective-Java/" title="Effective Java">Effective Java</a>
    

        </span>
    </p>

    <div class="post-content">
        <div class="post-excerpt">
            
                <h3 id="类层次结构优先于标签类"><a href="#类层次结构优先于标签类" class="headerlink" title="类层次结构优先于标签类"></a>类层次结构优先于标签类</h3><blockquote>
<p>如何定义一个能够表示多种风格对象的单一数据类型</p>
</blockquote>
            
            <p class="more">
                <a href="https://ljmstarry.gitee.io/2020/03/01/part7-类层次结构有限于标签类/">阅读剩下更多</a>
            </p>
        </div>
        <div class="post-thumbnail" data-img>
            <a href="https://ljmstarry.gitee.io/2020/03/01/part7-类层次结构有限于标签类/" title="Effective Java part7">
                
                    <img class="thumbnail" src="/img/default.png" data-echo="/img/thumbnail/1.jpg" alt="默认配图">
                
            </a>
        </div>
    </div>
</article>

    
        <!-- 文章列表 item -->
<article class="post">
    <header>
        <!-- 标签这有且只能显示一个 -->
        
        <a class="cat-link" href="/categories/Reading/">Reading</a>
        
        <!-- 文章标题 -->
        
    <h3 class="post-title">
    	<a href="https://ljmstarry.gitee.io/2020/01/27/part6-接口仅用来定义类型/">
    		Effective Java part6
    	</a>
    </h3>

    </header>
    <p class="post-meta">
        Jim 发表于
        <time datetime="2020-01-27T07:22:59.000Z">2020-01-27</time>
        &nbsp;&nbsp;
        <span class="post-tags">
            标签：
            
    
        <a href="/tags/阅读/" title="阅读">阅读</a> / 
    
        <a href="/tags/Effective-Java/" title="Effective Java">Effective Java</a>
    

        </span>
    </p>

    <div class="post-content">
        <div class="post-excerpt">
            
                <h3 id="接口仅用来定义类型"><a href="#接口仅用来定义类型" class="headerlink" title="接口仅用来定义类型"></a>接口仅用来定义类型</h3><blockquote>
<p>当类实现接口时，该接口作为一种类型（type），可以用来引用类的实例。因此，一个类实现了一个接口，因此表明客户端可以如何处理类的实例。为其他目的定义接口是不合适的。</p>
</blockquote>
            
            <p class="more">
                <a href="https://ljmstarry.gitee.io/2020/01/27/part6-接口仅用来定义类型/">阅读剩下更多</a>
            </p>
        </div>
        <div class="post-thumbnail" data-img>
            <a href="https://ljmstarry.gitee.io/2020/01/27/part6-接口仅用来定义类型/" title="Effective Java part6">
                
                    <img class="thumbnail" src="/img/default.png" data-echo="/img/thumbnail/7.jpg" alt="默认配图">
                
            </a>
        </div>
    </div>
</article>

    
        <!-- 文章列表 item -->
<article class="post">
    <header>
        <!-- 标签这有且只能显示一个 -->
        
        <a class="cat-link" href="/categories/Reading/">Reading</a>
        
        <!-- 文章标题 -->
        
    <h3 class="post-title">
    	<a href="https://ljmstarry.gitee.io/2020/01/26/part5-重写equals遵守约定/">
    		Effective Java part5
    	</a>
    </h3>

    </header>
    <p class="post-meta">
        Jim 发表于
        <time datetime="2020-01-26T07:22:59.000Z">2020-01-26</time>
        &nbsp;&nbsp;
        <span class="post-tags">
            标签：
            
    
        <a href="/tags/阅读/" title="阅读">阅读</a> / 
    
        <a href="/tags/Effective-Java/" title="Effective Java">Effective Java</a>
    

        </span>
    </p>

    <div class="post-content">
        <div class="post-excerpt">
            
                <h3 id="重写equals遵守约定"><a href="#重写equals遵守约定" class="headerlink" title="重写equals遵守约定"></a>重写equals遵守约定</h3><blockquote>
<p>如果一个类包含一个逻辑相等（logical equality）的概念，此概念有别于对象标识（object identity）即对象标识无法满足区分，而且父类还没有重写过 equals 方法，此时我们需要重写equals方法。</p>
</blockquote>
            
            <p class="more">
                <a href="https://ljmstarry.gitee.io/2020/01/26/part5-重写equals遵守约定/">阅读剩下更多</a>
            </p>
        </div>
        <div class="post-thumbnail" data-img>
            <a href="https://ljmstarry.gitee.io/2020/01/26/part5-重写equals遵守约定/" title="Effective Java part5">
                
                    <img class="thumbnail" src="/img/default.png" data-echo="/img/thumbnail/6.jpg" alt="默认配图">
                
            </a>
        </div>
    </div>
</article>

    
        <!-- 文章列表 item -->
<article class="post">
    <header>
        <!-- 标签这有且只能显示一个 -->
        
        <a class="cat-link" href="/categories/Reading/">Reading</a>
        
        <!-- 文章标题 -->
        
    <h3 class="post-title">
    	<a href="https://ljmstarry.gitee.io/2020/01/24/part4-消出过期的对象引用/">
    		Effective Java part4
    	</a>
    </h3>

    </header>
    <p class="post-meta">
        Jim 发表于
        <time datetime="2020-01-24T07:22:59.000Z">2020-01-24</time>
        &nbsp;&nbsp;
        <span class="post-tags">
            标签：
            
    
        <a href="/tags/阅读/" title="阅读">阅读</a> / 
    
        <a href="/tags/Effective-Java/" title="Effective Java">Effective Java</a>
    

        </span>
    </p>

    <div class="post-content">
        <div class="post-excerpt">
            
                <h3 id="消除过期的对象引用"><a href="#消除过期的对象引用" class="headerlink" title="消除过期的对象引用"></a>消除过期的对象引用</h3><blockquote>
<p>过期引用简单来说就是永远不会解除的引用.</p>
</blockquote>
            
            <p class="more">
                <a href="https://ljmstarry.gitee.io/2020/01/24/part4-消出过期的对象引用/">阅读剩下更多</a>
            </p>
        </div>
        <div class="post-thumbnail" data-img>
            <a href="https://ljmstarry.gitee.io/2020/01/24/part4-消出过期的对象引用/" title="Effective Java part4">
                
                    <img class="thumbnail" src="/img/default.png" data-echo="/img/thumbnail/4.jpg" alt="默认配图">
                
            </a>
        </div>
    </div>
</article>

    
        <!-- 文章列表 item -->
<article class="post">
    <header>
        <!-- 标签这有且只能显示一个 -->
        
        <a class="cat-link" href="/categories/Reading/">Reading</a>
        
        <!-- 文章标题 -->
        
    <h3 class="post-title">
    	<a href="https://ljmstarry.gitee.io/2020/01/21/part3-避免创建不必要的类/">
    		Effective Java part3
    	</a>
    </h3>

    </header>
    <p class="post-meta">
        Jim 发表于
        <time datetime="2020-01-21T04:22:59.000Z">2020-01-21</time>
        &nbsp;&nbsp;
        <span class="post-tags">
            标签：
            
    
        <a href="/tags/阅读/" title="阅读">阅读</a> / 
    
        <a href="/tags/Effective-Java/" title="Effective Java">Effective Java</a>
    

        </span>
    </p>

    <div class="post-content">
        <div class="post-excerpt">
            
                <h3 id="避免创建不必要的类"><a href="#避免创建不必要的类" class="headerlink" title="避免创建不必要的类"></a>避免创建不必要的类</h3><blockquote>
</blockquote>
            
            <p class="more">
                <a href="https://ljmstarry.gitee.io/2020/01/21/part3-避免创建不必要的类/">阅读剩下更多</a>
            </p>
        </div>
        <div class="post-thumbnail" data-img>
            <a href="https://ljmstarry.gitee.io/2020/01/21/part3-避免创建不必要的类/" title="Effective Java part3">
                
                    <img class="thumbnail" src="/img/default.png" data-echo="/img/thumbnail/1.jpg" alt="默认配图">
                
            </a>
        </div>
    </div>
</article>

    
        <!-- 文章列表 item -->
<article class="post">
    <header>
        <!-- 标签这有且只能显示一个 -->
        
        <a class="cat-link" href="/categories/Reading/">Reading</a>
        
        <!-- 文章标题 -->
        
    <h3 class="post-title">
    	<a href="https://ljmstarry.gitee.io/2020/01/19/part2-泛型递归模式/">
    		Effective Java part2
    	</a>
    </h3>

    </header>
    <p class="post-meta">
        Jim 发表于
        <time datetime="2020-01-19T06:22:59.000Z">2020-01-19</time>
        &nbsp;&nbsp;
        <span class="post-tags">
            标签：
            
    
        <a href="/tags/阅读/" title="阅读">阅读</a> / 
    
        <a href="/tags/Effective-Java/" title="Effective Java">Effective Java</a>
    

        </span>
    </p>

    <div class="post-content">
        <div class="post-excerpt">
            
                <h3 id="泛型递归模式"><a href="#泛型递归模式" class="headerlink" title="泛型递归模式"></a>泛型递归模式</h3><blockquote>
</blockquote>
            
            <p class="more">
                <a href="https://ljmstarry.gitee.io/2020/01/19/part2-泛型递归模式/">阅读剩下更多</a>
            </p>
        </div>
        <div class="post-thumbnail" data-img>
            <a href="https://ljmstarry.gitee.io/2020/01/19/part2-泛型递归模式/" title="Effective Java part2">
                
                    <img class="thumbnail" src="/img/default.png" data-echo="/img/thumbnail/9.jpg" alt="默认配图">
                
            </a>
        </div>
    </div>
</article>

    
        <!-- 文章列表 item -->
<article class="post">
    <header>
        <!-- 标签这有且只能显示一个 -->
        
        <a class="cat-link" href="/categories/Reading/">Reading</a>
        
        <!-- 文章标题 -->
        
    <h3 class="post-title">
    	<a href="https://ljmstarry.gitee.io/2020/01/18/part1-模拟自我类型与协变返回/">
    		Effective Java part1
    	</a>
    </h3>

    </header>
    <p class="post-meta">
        Jim 发表于
        <time datetime="2020-01-18T04:22:59.000Z">2020-01-18</time>
        &nbsp;&nbsp;
        <span class="post-tags">
            标签：
            
    
        <a href="/tags/阅读/" title="阅读">阅读</a> / 
    
        <a href="/tags/Effective-Java/" title="Effective Java">Effective Java</a>
    

        </span>
    </p>

    <div class="post-content">
        <div class="post-excerpt">
            
                <h3 id="模拟自我类型与协变返回"><a href="#模拟自我类型与协变返回" class="headerlink" title="模拟自我类型与协变返回"></a>模拟自我类型与协变返回</h3><blockquote>
</blockquote>
            
            <p class="more">
                <a href="https://ljmstarry.gitee.io/2020/01/18/part1-模拟自我类型与协变返回/">阅读剩下更多</a>
            </p>
        </div>
        <div class="post-thumbnail" data-img>
            <a href="https://ljmstarry.gitee.io/2020/01/18/part1-模拟自我类型与协变返回/" title="Effective Java part1">
                
                    <img class="thumbnail" src="/img/default.png" data-echo="/img/thumbnail/8.jpg" alt="默认配图">
                
            </a>
        </div>
    </div>
</article>

    
        <!-- 文章列表 item -->
<article class="post">
    <header>
        <!-- 标签这有且只能显示一个 -->
        
        <a class="cat-link" href="/categories/Reading/">Reading</a>
        
        <!-- 文章标题 -->
        
    <h3 class="post-title">
    	<a href="https://ljmstarry.gitee.io/2020/01/01/Thinking-In-Java-Chapt7/">
    		Thinking In Java Chapt7
    	</a>
    </h3>

    </header>
    <p class="post-meta">
        Jim 发表于
        <time datetime="2020-01-01T09:23:16.000Z">2020-01-01</time>
        &nbsp;&nbsp;
        <span class="post-tags">
            标签：
            
    
        <a href="/tags/阅读/" title="阅读">阅读</a> / 
    
        <a href="/tags/Thinking-In-Java/" title="Thinking In Java">Thinking In Java</a>
    

        </span>
    </p>

    <div class="post-content">
        <div class="post-excerpt">
            
                <h3 id="多形性-多态"><a href="#多形性-多态" class="headerlink" title="多形性(多态)"></a>多形性(多态)</h3><blockquote>
<p>“多形性”（Polymorphism）从另一个角度将接口从具体的实施细节中分离出来，亦即实现了“是什么”与 “怎样做”两个模块的分离。也称为<strong>动态绑定、运行时绑定、推迟绑定</strong></p>
</blockquote>
            
            <p class="more">
                <a href="https://ljmstarry.gitee.io/2020/01/01/Thinking-In-Java-Chapt7/">阅读剩下更多</a>
            </p>
        </div>
        <div class="post-thumbnail" data-img>
            <a href="https://ljmstarry.gitee.io/2020/01/01/Thinking-In-Java-Chapt7/" title="Thinking In Java Chapt7">
                
                    <img class="thumbnail" src="/img/default.png" data-echo="/img/thumbnail/1.jpg" alt="默认配图">
                
            </a>
        </div>
    </div>
</article>

    

    
    <nav class="page-navigator">
        <span class="page-number current">1</span>
    </nav>
    


            </div>

        </section>
        <!-- 侧栏部分 -->
<aside class="sidebar">
    <section class="widget">
        <h3 class="widget-hd"><strong>文章分类</strong></h3>
        <!-- 文章分类 -->
<ul class="widget-bd">
    
    <li>
        <a href="/categories/linus/">linus</a>
        <span class="badge">(4)</span>
    </li>
    
    <li>
        <a href="/categories/technology/">technology</a>
        <span class="badge">(8)</span>
    </li>
    
    <li>
        <a href="/categories/Reading/">Reading</a>
        <span class="badge">(13)</span>
    </li>
    
    <li>
        <a href="/categories/others/">others</a>
        <span class="badge">(1)</span>
    </li>
    
    <li>
        <a href="/categories/linus/technology/">technology</a>
        <span class="badge">(1)</span>
    </li>
    
    <li>
        <a href="/categories/mysql/">mysql</a>
        <span class="badge">(1)</span>
    </li>
    
    <li>
        <a href="/categories/mysql/technology/">technology</a>
        <span class="badge">(1)</span>
    </li>
    
</ul>
    </section>

    
    <section class="widget">
        <h3 class="widget-hd"><strong>热门标签</strong></h3>
        <!-- 文章标签 -->
<div class="widget-bd tag-wrap">
  
    <a class="tag-item" href="/tags/linus/" title="linus">linus (4)</a>
  
    <a class="tag-item" href="/tags/ngnix/" title="ngnix">ngnix (1)</a>
  
    <a class="tag-item" href="/tags/源码学习/" title="源码学习">源码学习 (2)</a>
  
    <a class="tag-item" href="/tags/阅读/" title="阅读">阅读 (13)</a>
  
    <a class="tag-item" href="/tags/Thinking-In-Java/" title="Thinking In Java">Thinking In Java (5)</a>
  
    <a class="tag-item" href="/tags/java/" title="java">java (3)</a>
  
    <a class="tag-item" href="/tags/technology/" title="technology">technology (1)</a>
  
    <a class="tag-item" href="/tags/springBoot/" title="springBoot">springBoot (2)</a>
  
    <a class="tag-item" href="/tags/设计模式/" title="设计模式">设计模式 (3)</a>
  
    <a class="tag-item" href="/tags/test/" title="test">test (1)</a>
  
    <a class="tag-item" href="/tags/Effective-Java/" title="Effective Java">Effective Java (8)</a>
  
    <a class="tag-item" href="/tags/mysql/" title="mysql">mysql (2)</a>
  
    <a class="tag-item" href="/tags/Docker/" title="Docker">Docker (1)</a>
  
</div>
    </section>
    

    

    
    <!-- 友情链接 -->
    <section class="widget">
        <h3 class="widget-hd"><strong>友情链接</strong></h3>
        <!-- 文章分类 -->
<ul class="widget-bd">
    
        <li>
            <a href="https://www.bilibili.com" target="_blank" title="bilibili">哔哩哔哩</a>
        </li>
    
        <li>
            <a href="https://www.baidu.com" target="_blank" title="百度搜索">百度</a>
        </li>
    
</ul>
    </section>
    
</aside>
<!-- / 侧栏部分 -->
    </div>

    <!-- 博客底部 -->
    <footer class="footer">
    &copy;
    
        2016-2020
    

    <a href="/">Jim Loves You</a>
</footer>
<div class="back-to-top" id="JELON__backToTop" title="返回顶部">返回顶部</div>

    <!--博客js脚本 -->
    <!-- 这里放网站js脚本 -->
<script src="/js/main.js"></script>
</body>
</html>